import QtQuick 1.0

Rectangle {
	id: clipItem

	width: clipItem.PathView.view.width - x
	anchors.right: clipItem.PathView.view.right
	height: 32
	color: Qt.rgba(0, 0, 0, 0)
//    border.color: "red"

	scale: clipItem.PathView.itemScale

	Text {
		text: (model.index + 1) + ". " + model.clipText + " " + activeFocus

		elide: Text.ElideRight

		color: (clipItem.PathView.isCurrentItem)? "black" : Qt.darker("#6B8CB5")

		anchors {
			top: parent.top
			bottom: parent.bottom
			left: parent.horizontalCenter
			right: parent.right
		}

		font {
			bold: clipItem.PathView.isCurrentItem
			pixelSize: 20
		}

		verticalAlignment: Text.AlignVCenter
		smooth: true
		opacity: clipItem.PathView.itemScale
	}

	smooth: true

	MouseArea {
		anchors.fill: parent
		onClicked: clipItem.PathView.view.currentIndex = index
	}
}
